<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>${title}</title>
    <meta name="keywords" content="在线支付案例，支付宝支付Demo">
    <link rel="stylesheet" href="/layui/css/layui.css">
    <meta name="description" content="一个Java实现的支付宝在线支付在线案例">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
</head>
<body>
<div class="layui-container">

    <#include "common/common.ftl"/>

    <div class="layui-row">
        <div class="layui-col-md12">
            <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                <legend>订单列表</legend>
            </fieldset>
        </div>

        <div class="layui-col-md12">
            <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                <table class="layui-hide" id="orderListTable"></table>
            </fieldset>
        </div>
    </div>

</div></div>
</body>

<script src="/layui/layui.js"></script>

<script>
    layui.use('table', function(){
        var table = layui.table;

        //第一个实例
        table.render({
            elem: '#orderListTable'
            ,url: '/order/orderList' //数据接口
            ,page: true //开启分页
            ,cols: [[ //表头
                {field: 'nickName', title: '昵称', width:100}
                ,{field: 'qqorwx', title: 'QQ或微信', width:120}
                ,{field: 'buyTime', title: '支付时间', width:180, sort: true, align:'center'}
                ,{field: 'way', title: '支付方式', width:100, align: 'center'}
                ,{field: 'body', title: '订单详情', width: 200}
                ,{field: 'message', title: '留言'}
            ]]
        });

    });
</script>
</html>
